package com.wxq.demo.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class ReceiveService {
    @RabbitListener(queues = "topic.message")
    public void process1(String string) {
        System.out.println("message:" + string);
    }

    @RabbitListener(queues = "topic.messages")
    public void process2(String string) {
        System.out.println("messages:" + string);
    }
}
